home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
os2
/
ticker2.zip
/
tickerp.inf
(
.txt
)
< prev
Wrap
OS/2 Help File
|
1996-05-28
|
37KB
|
165 lines
ΓòÉΓòÉΓòÉ 1. About ΓòÉΓòÉΓòÉ
Ticker/2 REXX Extentions Programmer's Reference
Use REXX command files to add/remove text and bitmaps to the ticker. Ticker/2
executes each command file in a separate thread.
Control Methods:
Clearing the ticker
Control the ticker speed
Adjust the size of the ticker
Adding objects:
Add text
Add bitmaps
ΓòÉΓòÉΓòÉ 2. Reference ΓòÉΓòÉΓòÉ
Ticker/2 REXX function reference:
AddTicker
AddTickerObject
AdjustTickerSize
ClearTicker
SetTickerSpeed
ΓòÉΓòÉΓòÉ 2.1. ClearTicker ΓòÉΓòÉΓòÉ
ClearTicker
Description:
This function removes all elements from the ticker.
Parameter:
None
Note: The scheduler file is not removed!
ΓòÉΓòÉΓòÉ 2.2. AddTicker ΓòÉΓòÉΓòÉ
AddTicker
Definition:
add a textobject to the ticker
Parameter:
text: Any text.
key: The key identifies the element. If the key exists, the
corresponding element will be updated, if the key does
not exist, the element will be added.
expire: Expiration of the element. A value of 0 means show
forever, a value greater than 0 is expiration in seconds
and a value less than 0 means the nr of times the element
appears in the ticker display.
color: Color of the text. Valid colors are: black, red, green,
blue, yellow, gray, white.
Example:
call addticker 'Display 60 seconds red', 'KEY60', 60, red
call addticker 'Display twice, default color', 'DEF'2, -2
ΓòÉΓòÉΓòÉ 2.3. AddTickerObject ΓòÉΓòÉΓòÉ
AddTickerObject
Description:
Add a bitmap to the ticker.
Parameter:
type: Valid types are 'img' and 'cmd'. If you want to add a
bitmap use type 'img'. The type cmd is reserved to add
REXX command file. Note: 'cmd' is not supported in this version.
file: Name of the file to be added
key: The key identifies the element. If the key exists, the
corresponding element will be updated, if the key does
not exist, the element will be added.
expire: Expiration of the element. A value of 0 means show
forever, a value greater than 0 is expiration in seconds
and a value less than 0 means the nr of times the element
appears in the ticker display.
Valid formats for bitmaps are:
TGA 24 bit
TIFF
GIFF
BMP
Example:
/* show test.tif for one minute */
call addtickerobject 'img', 'test.tif', 'KEYBITmap', 60
/* show test1.bmp 3 times */
call addtickerobject 'img', 'test1.bmp', 999, -3
ΓòÉΓòÉΓòÉ 2.4. SetTickerSpeed ΓòÉΓòÉΓòÉ
SetTickerSpeed
Description:
Sets the scrolling speed of the ticker.
Parameter:
time: Time in milliseconds between 2 scroll events.
NOTE: time < 100 will increase system load
pixel: Number of pixels the ticker is scrolled each event.
Example:
/* set the speed to 40 ms between 2 scrollevents and */
/* scroll 2 pixel each time */
call settickerspeed 40, 2
ΓòÉΓòÉΓòÉ 2.5. AdjustTickerSize ΓòÉΓòÉΓòÉ
AdjustTickerSize
Description:
Automatically adjust the height of the ticker to the largest object.
Parameter:
None